
<% q = @question %>
  <table width="440" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="60%">
        第<%= @question_num %>题.&nbsp;&nbsp;
        <%= q.description %> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="#" onclick="$('show_item_<%=q.id%>').hide(); $('edit_item_<%=q.id%>').show();">修改</a>

        <% action = @test.has_part == 1 ? "destroy_question" : "destroy_question_no_part" %>
        <%= link_to_remote "删除", :update => "questionsDiv",
                :url => { :action => action, :id => q }
        %>
        <!--a href="#" onclick="new Effect.Fold('item_<%=q.id%>',{duration:1.5})">hide</a-->
        <!--
        <a href="#" onclick="deleteQuestion(<%=q.id%>)">删除</a>
        -->
        
   
    <!--选项-->
    <% q.choices.each do |c| %>
    <tr>
      <td><label>
        <input type="radio" name="RadioGroup1" value="单选"/>
        <%= c.content %> 
          
        </label>
      </td>
      <td class="red"><%= c.value %>分</td>
    </tr>
    
    <% end %>
    <!--选项结束-->
   
    
    <tr><td height="18"></td></tr>
    
  </table>
   <div><font color="red"><%=flash[:q_error]%></font></div> 

</li>

<script>
  function heighlight(el){
    new Effect.Highlight(el, {duration: 1.5})
  }

  heighlight("item_<%= @question.id %>");
</script>
